package com.raise.drive.commons.web.springmvc.controller;

import org.springframework.web.servlet.mvc.Controller;
import org.springframework.web.context.support.WebApplicationObjectSupport;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.Log;

/**
 * Common controller with logging and success view parameter
 *
 * @author Eugene Rozov
 */
public abstract class BaseController extends WebApplicationObjectSupport implements Controller {

    protected Log logger = LogFactory.getLog(getClass());
    private String successView;

    public void setSuccessView(String successView) {
        this.successView = successView;
    }

    public String getSuccessView() {
        return successView;
    }

}
